#include "dwgcircleone.h"
#include <math.h>
DwgCircleone::DwgCircleone(QObject *parent)
    : DwgObject{parent}
{}
void DwgCircleone::Draw(QPainter *p)
{
    radius=sqrt((Core.x()-Rad.x())*(Core.x()-Rad.x())+(Core.y()-Rad.y())*(Core.y()-Rad.y()));
    p->drawEllipse(Core, radius, radius);  // 以中心点画椭圆（圆椭圆半径相等）
}
